﻿<UserControl x:Class="VmroleAuthor.Views.ParameterizablePropertyView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignWidth="500"
             VerticalAlignment="Top">    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition MinHeight="30"/>          
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <!--
            <ColumnDefinition Width="1"/>
            <ColumnDefinition Width="15"/>
            <ColumnDefinition Width="0"/>
            <ColumnDefinition Width="48"/>
            -->
        </Grid.ColumnDefinitions>
        <ComboBox x:Name="ParamCmbBox" Grid.Column="0" Grid.Row="0" IsEditable="True" ItemsSource="{Binding  AvailableParameters}" SelectedItem="{Binding SelectedPropertyValue}"  Text="{Binding PropertyValue, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{x:Null}">
           <ComboBox.ToolTip>
               Drop down for options
           </ComboBox.ToolTip>          
        </ComboBox>
        
        <!--
        <CheckBox Style="{StaticResource ResourceKey=CheckBoxStyle}" Grid.Column="2" Grid.Row="0" IsChecked="{Binding IsParameterized, Mode=TwoWay}"/>
        <Label Grid.Row="0" Grid.Column="4" >Param</Label>
        -->
        <ContentPresenter Grid.Row="1" Grid.Column ="0" Content="{Binding ElementName=ParamCmbBox, Path=(Validation.Errors).CurrentItem}" />
    </Grid>
</UserControl>
